Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] History fix / signoff #3994

Merged
merged 55 commits into from
Oct 17, 2023
Merged

[chore] History fix / signoff #3994

merged 55 commits into from
Oct 17, 2023

Conversation

6r1d
Copy link
Contributor

@6r1d 6r1d commented Oct 17, 2023

Fixes the signoff in f0b2092 by adding a signoff in 483b6d5c

6r1d and others added 30 commits October 17, 2023 08:27
Co-authored-by: Shanin Roman <[email protected]>
[fix] #3890: Fix validate topology on block sync

Signed-off-by: Marin Veršić <[email protected]>
Since the implementation of rust-lang/rfcs#3389, it is now possible to specify workspace-level lints for rustc and clippy. This PR updates the cargo configuration and CI to use this new feature instead of cargo-lints.

Note that it was only stabilized in `nightly-2023-09-10`. Using it with out current toolchain requires either a -Zlints flag or a modification to `.cargo/config.toml`:

```
[unstable]
lints = true
```

Note that unlike the original suggestion in #3622, this doesn't make the lints crate level, but merely replaces a clunky unmaintained tool with a standard solution for configuring lints.

In particular this PR:
- Removes old lints.toml configuration files for cargo-lints
- Adds [lint] tables to Cargo.toml of the root and wasm workspaces. The lints are duplicated between the two
- Replaces `cargo lints clippy` invocations with `cargo clippy -Zlints` in CI scripts
- Silences/fixes some new lints that popped up due to differences in how between `cargo lints` and workspaces
- Does a drive-by fix to iroha_genesis: it now too shares cargo metadata as do other crates

Signed-off-by: Nikita Strygin <[email protected]>
* [fix]: `mkdir -r` with store path, not lock path

Signed-off-by: Dmitry Balashov <[email protected]>

* [fix]: use `store_path` in the err

Signed-off-by: Dmitry Balashov <[email protected]>

* [refactor]: `&`

Signed-off-by: Dmitry Balashov <[email protected]>

* [refactor]: apply lint

Signed-off-by: Dmitry Balashov <[email protected]>

---------

Signed-off-by: Dmitry Balashov <[email protected]>
…t rid of unnecessary .except in derive(Filter)

This addresses the last of the concerns raised in #2437

Signed-off-by: Nikita Strygin <[email protected]>
…ition in derive(IdEqOrdHash), fix error reporting on stable

Signed-off-by: Nikita Strygin <[email protected]>
[feat]: parse filter as JSON5 in `iroha_client_cli`

Signed-off-by: Dmitry Balashov <[email protected]>
Also, a drive-by fix to silence the "unused" lints in some other feature combinations

Signed-off-by: Nikita Strygin <[email protected]>
@6r1d 6r1d self-assigned this Oct 17, 2023
@github-actions github-actions bot added the iroha2-dev The re-implementation of a BFT hyperledger in RUST label Oct 17, 2023
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6542959994

  • 2161 of 4454 (48.52%) changed or added relevant lines in 128 files are covered.
  • 4979 unchanged lines in 105 files lost coverage.
  • Overall coverage decreased (-3.4%) to 56.039%

Changes Missing Coverage Covered Lines Changed/Added Lines %
config/base/src/runtime_upgrades.rs 2 3 66.67%
core/src/gossiper.rs 0 1 0.0%
core/src/queue.rs 28 29 96.55%
core/src/smartcontracts/isi/asset.rs 1 2 50.0%
core/src/smartcontracts/isi/tx.rs 4 5 80.0%
crypto/src/hash.rs 5 6 83.33%
ffi/src/option.rs 0 1 0.0%
ffi/src/repr_c.rs 5 6 83.33%
p2p/src/peer.rs 0 1 0.0%
primitives/src/small.rs 1 2 50.0%
Files with Coverage Reduction New Missed Lines %
client/src/lib.rs 1 0.0%
cli/src/torii/pagination.rs 1 98.9%
config/base/src/runtime_upgrades.rs 1 50.0%
config/src/sumeragi.rs 1 56.0%
config/src/torii.rs 1 96.43%
core/src/gossiper.rs 1 0.0%
core/src/smartcontracts/isi/block.rs 1 87.5%
crypto/src/merkle.rs 1 96.23%
data_model/derive/src/id.rs 1 86.11%
data_model/src/domain.rs 1 48.25%
Totals Coverage Status
Change from base Build 5423219773: -3.4%
Covered Lines: 21923
Relevant Lines: 39121

💛 - Coveralls

@6r1d 6r1d merged commit 14e1411 into iroha2-dev Oct 17, 2023
12 of 13 checks passed
@nxsaken nxsaken deleted the grid_history_fix branch May 28, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

Successfully merging this pull request may close these issues.